<template>
  <div class="right-chart-2">
    <div class="rc1-header">蜂种统计</div>
    <dv-decoration-2 style="height:10px;" />
    <div class="rc1-chart-container">
    <dv-capsule-chart :config="config" style="width:500px;height:185px;" />
    </div>
  </div>
</template>

<script>
export default {
  name: 'RightChart2',
  data () {
    return {
      config: {
        data: [
          {
            name: '中华蜜蜂',
            value: 55
          },
          {
            name: '长颈树蜂',
            value: 100
          },
          {
            name: '无花果小蜂',
            value: 78
          },
          {
            name: '青蜂',
            value: 66
          },
          {
            name: '金环胡蜂',
            value: 80
          }
        ],
        colors: ['#e062ae', '#fb7293', '#e690d1', '#32c5e9', '#96bfff'],
        unit: '只',
        showValue: true
      }

    }
  }
}
</script>

<style lang="less">
.right-chart-2 {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;

  .rc1-header {
    font-size: 20px;
    font-weight: bold;
    text-indent: 20px;
    font-weight: bold;
    color: rgb(81,119,243);
  }

  .rc1-chart-container {
    flex: 1;
    display: flex;
  }

  .left {
    width: 30%;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    .number {
      font-size: 34px;
      color: #096dd9;
      font-weight: bold;
      margin-bottom: 30px;
    }
  }

  .right {
    flex: 1;
    padding-bottom: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }
}
</style>
